<?php

namespace App\Kuafu\Config\Service;

use App\Kuafu\Activity\Enum\ActivityEnum;
use App\Kuafu\Activity\Model\ActivityModel;
use App\Kuafu\Config\Enum\ConfigCacheEnum;
use App\Kuafu\Config\Enum\ConfigCodeEnum;
use App\Kuafu\Config\Exceptions\ConfigException;
use App\Kuafu\Config\Model\ConfigModel;
use App\Kuafu\Config\Validate\ConfigValidate;
use App\Kuafu\Product\Enum\ProductCacheEnum;
use App\Kuafu\User\Service\AuthService;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache;
use App\Kuafu\Base\Service\BaseService;

class ConfigClientService extends BaseService
{
    /**
     * 获取 POS 副屏轮播图默认图
     *
     * @return array
     */
    public static function getPosDefaultAuxiliaryScreenRotation(): array
    {
        $data = ConfigModel::getConfigByTypeKey('pos', 'screenRotationDefault');
        return collect($data)->pluck('value')->toArray();
    }

    /**
     * 获取 小程序点餐页 轮播图默认图
     *
     * @return array
     */
    public static function getAppletDefaultHeaderBanner(): array
    {
        $data = ConfigModel::getConfigByTypeKey('applet', 'screenRotationDefault');
        return collect($data)->pluck('value')->toArray();
    }

}
